<?php
/**
 * 获取商品缩略图地址
 * date 2012-10-28
 */

define('IN_ECS', true);

require(dirname(__FILE__) . '/includes/init.php');


/***业务处理开始***/

$goods_id = $_REQUEST['id'];

$sql = "SELECT goods_preview FROM " . $ecs->table('goods_preview') .
                    " WHERE goods_id = '$goods_id'" ;

$goods_preview = $db->getRow($sql);

//echo json_encode($goods_preview);
//echo "<html>";
echo $goods_preview['goods_preview'];
//echo "</html>";
?>
